﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Xml;

namespace Microserve.TeleEye.Common.Utility
{
    public static class XmlDocumentHelper
    {
        public static string GetAttributeValue(XmlNode node, string attributeName)
        {           
            string value = string.Empty;
            if (node != null)
            {
                XmlAttribute attr = node.Attributes[attributeName];
                if (attr != null)
                {
                    value = attr.Value;
                }
            }
            return value;
        }
    }
}
